package com.bafa.front.events;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.bafa.front.utils.FrontUtils;
import com.bafa.objects.PageBean;
import com.bafa.objects.team.Team;
import com.bafa.services.AdminServices;
import com.bafa.services.RetrieveServices;

public class ConfirmPaymentEvent extends Event {

	@Override
	public void doEvent(HttpServletRequest request,
			HttpServletResponse response, PageBean page) {
		if(new Integer(request.getParameter("google-order-number")).intValue()>0){
			AdminServices.updateMoneyOwed(FrontUtils.getLoggedOnTeam(request).getId(),new Double(0));
			
		}

	}

}
